package com.ec.au.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ec.au.domain.dto.UserLoginDTO;
import com.ec.au.domain.dto.UserRegisterFormDTO;
import com.ec.au.domain.dto.UserUpdateDTO;
import com.ec.au.domain.po.User;
import com.ec.au.domain.vo.TokenVO;

public interface UserService extends IService<User> {

    TokenVO login(UserLoginDTO userLoginDTO);

    boolean logout();

    boolean register(UserRegisterFormDTO userRegisterFormDTO);

    boolean updatePassword( UserUpdateDTO updateDTO);

    boolean update(long userid,UserUpdateDTO updateDTO);

    User getByUserName(String userName);
    // 逻辑删除用户
    boolean deleteUsersLogic(long[] ids);

}
